// @ts-ignore
import axios from "@/http/index";
const data = new Date();
export function getHome() {
  return axios({
    url: "/xhr/index.json",
    method: "get",
    params: {
      __timestamp: data.getTime(),
    },
  });
}
export function getHomeRecommend(categoryId: string) {
  return axios({
    url: "/item/list.json",
    method: "get",
    params: {
      __timestamp: data.getTime(),
      categoryId,
    },
  });
}
